package com.sykj.wangkun.controller;

import com.sykj.util.reponse.CommonEnum;
import com.sykj.util.reponse.ResultBody;
import com.sykj.wangkun.bean.RoleUser;
import com.sykj.wangkun.service.RoleUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: RoleUserController
 * @Package: com.sykj.wangkun.controller
 * @program: BeautyClub
 * @description:
 * @author: Mr.Wang
 * @create: 2020-07-28 15:35
 **/
@RestController
@RequestMapping("/roleuser")
public class RoleUserController {
    @Autowired
    private RoleUserService roleUserService;

    /**
     * 功能描述:给用户附加角色
     * @author 姓名
     * @date
     */
    @RequestMapping("/addrole")
    public ResultBody addrole(RoleUser roleUser){
        roleUserService.save(roleUser);
        return new ResultBody(CommonEnum.SUCCESS);
    }






}
